<?php
	defined( '_JEXEC' ) or die( 'die' );
	jimport( 'joomla.application.component.model' );
	
	class ModelTest extends JMode
	{
		$_tests = null;
		function getList()
		{
			if( !$this->_tests)	
			{
				$query = "SELECT * FROM #_test WHERE published = '1'";
				$this->_test = $this->_getList( $query, 0, 0 );
			}
			return $this->_test;
		}
		
	}
?>